import { type Book, BookStatus } from './book'

// 蔬菜类数据
const getLiteratureData = (): Book[] => {
    return [
        {
            id: '1',
            photo: "../../../src/assets/images/book1.jpg",
            brandName: "白菜",
            introduction: "白菜生食、炒食、盐醃、酱渍均可",
            count: 52,
            status: BookStatus.LITERATURE
        },
        {
            id: '2',
            photo: "../../../src/assets/images/book2.jpg",
            brandName: "番茄",
            introduction: "既可生食也可熟食",
            count: 38,
            status: BookStatus.LITERATURE
        },
        {
            id: '3',
            photo: "../../../src/assets/images/book3.jpg",
            brandName: "萝卜",
            introduction: "具有清热化痰、消食通便、调节血压等功效",
            count: 40,
            status: BookStatus.LITERATURE
        },
    ]
}

// 零食类数据
const getScienceData = (): Book[] => {
    return [
        {
            id: '4',
            photo: "../../../src/assets/images/book4.jpg",
            brandName: "瓜子",
            introduction: "不但可以作为零食，而且还可以作为制作糕点的原料",
            count: 12,
            status: BookStatus.SCIENCE
        },
        {
            id: '5',
            photo: "../../../src/assets/images/book5.jpg",
            brandName: "果冻",
            introduction: "别名啫喱，是一种 西方甜食",
            count: 50,
            status: BookStatus.SCIENCE
        },
    ]
}

// 玩具类数据
const getArtData = (): Book[] => {
    return [
        {
            id: '6',
            photo: "../../../src/assets/images/book6.jpg",
            brandName: "硅胶捏捏",
            introduction: "在手中拿捏把玩后会恢复原状",
            count: 130,
            status: BookStatus.ARTCATEGORY
        },
        {
            id: '7',
            photo: "../../../src/assets/images/book7.jpg",
            brandName: "遥控车",
            introduction: "使用油门做为动力，输出电能到电动机上，电动机再推动车子",
            count: 105,
            status: BookStatus.ARTCATEGORY
        }
    ]
}

// 生活用品类
const getSocietyData = (): Book[] => {
    return [
        {
            id: '8',
            photo: "../../../src/assets/images/book8.jpg",
            brandName: "牙刷",
            introduction: "一种清洁用品，为手柄式刷子",
            count: 110,
            status: BookStatus.SOCIETY
        },
        {
            id: '9',
            photo: "../../../src/assets/images/book9.jpg",
            brandName: "吹风机",
            introduction: "由一组 电热丝 和一个高转速小风扇组合而成的",
            count: 40,
            status: BookStatus.SOCIETY
        },
    ]
}

// 其它类别数据
const getOtherData = (): Book[] => {
    return [
        {
            id: '10',
            photo: "../../../src/assets/images/book10.jpg",
            brandName: "《史记的读法》",
            introduction: "一本作者为杨照的书籍",
            count: 56,
            status: BookStatus.OTHER
        },
        {
            id: '11',
            photo: "../../../src/assets/images/book11.jpg",
            brandName: "芬达",
            introduction: "一种碳酸饮料",
            count: 45,
            status: BookStatus.OTHER
        },
        {
            id: '12',
            photo: "../../../src/assets/images/book12.jpg",
            brandName: "4090显卡",
            introduction: "具备更高数量的CUDA核心和更快的显存",
            count: 43,
            status: BookStatus.OTHER
        },
        {
            id: '13',
            photo: "../../../src/assets/images/book13.jpg",
            brandName: "苹果",
            introduction: "别称西洋苹果、柰，属于 蔷薇科 苹果属 的植物",
            count: 95,
            status: BookStatus.OTHER
        },
        {
            id: '14',
            photo: "../../../src/assets/images/book14.jpg",
            brandName: "草莓",
            introduction: "一个被誉为“果中皇后”的水果",
            count: 42,
            status: BookStatus.OTHER
        },
        {
            id: '15',
            photo: "../../../src/assets/images/book15.jpg",
            brandName: "厨邦酱油",
            introduction: "厨邦酱油原产广东、天然发酵、酱香浓郁、味道鲜美",
            count: 28,
            status: BookStatus.OTHER
        }
    ]
}
// 所有类别数据
let AllData: Book[] = getLiteratureData().concat(getScienceData(), getArtData(), getSocietyData(), getOtherData())

export { AllData }
